package main

import "fmt"

func main() {
	s3 := make([]int, 3, 3)
	s4 := make([]int, 3, 3)
	//fmt.Println(s3)

	s3[0] = 1
	s3[1] = 2
	s3[2] = 3
	s3 = append(s3, 4, 5, 6)
	s4 = append(s4, s3...)
	fmt.Println(s4)

	//遍历切片
	for i := 0; i < len(s4); i++ {
		fmt.Println(s4[i])
	}
}
